<div class="users view">
    <h2><?php echo __('User'); ?></h2>
    <dl>
        <dt><?php echo __('Id'); ?></dt>
        <dd>
            <?php echo h($user['User']['id']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Username'); ?></dt>
        <dd>
            <?php echo h($user['User']['username']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Password'); ?></dt>
        <dd>
            <?php echo h($user['User']['password']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Email'); ?></dt>
        <dd>
            <?php echo h($user['User']['email']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('First Name'); ?></dt>
        <dd>
            <?php echo h($user['User']['first_name']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Middle Name'); ?></dt>
        <dd>
            <?php echo h($user['User']['middle_name']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Last Name'); ?></dt>
        <dd>
            <?php echo h($user['User']['last_name']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Aka First Name'); ?></dt>
        <dd>
            <?php echo h($user['User']['aka_first_name']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Aka Last Name'); ?></dt>
        <dd>
            <?php echo h($user['User']['aka_last_name']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Dob'); ?></dt>
        <dd>
            <?php echo h($user['User']['dob']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Phone 1'); ?></dt>
        <dd>
            <?php echo h($user['User']['phone_1']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Phone 2'); ?></dt>
        <dd>
            <?php echo h($user['User']['phone_2']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Marital Status'); ?></dt>
        <dd>
            <?php echo $this->Html->link($user['MaritalStatus']['title'], array('controller' => 'marital_statuses', 'action' => 'view', $user['MaritalStatus']['id'])); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Gender'); ?></dt>
        <dd>
            <?php echo $this->Html->link($user['Gender']['title'], array('controller' => 'genders', 'action' => 'view', $user['Gender']['id'])); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Ethincity'); ?></dt>
        <dd>
            <?php echo $this->Html->link($user['Ethincity']['title'], array('controller' => 'ethincities', 'action' => 'view', $user['Ethincity']['id'])); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Alternate Contact'); ?></dt>
        <dd>
            <?php echo h($user['User']['alternate_contact']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Alternate Phone'); ?></dt>
        <dd>
            <?php echo h($user['User']['alternate_phone']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Carrier'); ?></dt>
        <dd>
            <?php echo $this->Html->link($user['Carrier']['title'], array('controller' => 'carriers', 'action' => 'view', $user['Carrier']['id'])); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Ca Resident'); ?></dt>
        <dd>
            <?php echo h($user['User']['ca_resident']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Role'); ?></dt>
        <dd>
            <?php echo $this->Html->link($user['Role']['title'], array('controller' => 'roles', 'action' => 'view', $user['Role']['id'])); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Active'); ?></dt>
        <dd>
            <?php echo h($user['User']['active']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Is Union Member'); ?></dt>
        <dd>
            <?php echo h($user['User']['is_union_member']); ?>
            &nbsp;
        </dd>
    </dl>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Edit User'), array('action' => 'edit', $user['User']['id'])); ?> </li>
        <li><?php echo $this->Form->postLink(__('Delete User'), array('action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id'])); ?> </li>
        <li><?php echo $this->Html->link(__('List Users'), array('action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Marital Statuses'), array('controller' => 'marital_statuses', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Marital Status'), array('controller' => 'marital_statuses', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Genders'), array('controller' => 'genders', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Gender'), array('controller' => 'genders', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Ethincities'), array('controller' => 'ethincities', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Ethincity'), array('controller' => 'ethincities', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Carriers'), array('controller' => 'carriers', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Carrier'), array('controller' => 'carriers', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Roles'), array('controller' => 'roles', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Role'), array('controller' => 'roles', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Additional Infos'), array('controller' => 'additional_infos', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Additional Info'), array('controller' => 'additional_infos', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Addresses'), array('controller' => 'addresses', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Address'), array('controller' => 'addresses', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List User Agents'), array('controller' => 'user_agents', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User Agent'), array('controller' => 'user_agents', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List User Schools'), array('controller' => 'user_schools', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User School'), array('controller' => 'user_schools', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List User Unions'), array('controller' => 'user_unions', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User Union'), array('controller' => 'user_unions', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Waivers Releases'), array('controller' => 'waivers_releases', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Waivers Release'), array('controller' => 'waivers_releases', 'action' => 'add')); ?> </li>
    </ul>
</div>
<div class="related">
    <h3><?php echo __('Related Additional Infos'); ?></h3>
    <?php if (!empty($user['AdditionalInfo'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Staff Contact'); ?></th>
                <th><?php echo __('Educational Counseling'); ?></th>
                <th><?php echo __('Family Individual Counseling'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($user['AdditionalInfo'] as $additionalInfo): ?>
                <tr>
                    <td><?php echo $additionalInfo['id']; ?></td>
                    <td><?php echo $additionalInfo['user_id']; ?></td>
                    <td><?php echo $additionalInfo['staff_contact']; ?></td>
                    <td><?php echo $additionalInfo['educational_counseling']; ?></td>
                    <td><?php echo $additionalInfo['family_individual_counseling']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'additional_infos', 'action' => 'view', $additionalInfo['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'additional_infos', 'action' => 'edit', $additionalInfo['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'additional_infos', 'action' => 'delete', $additionalInfo['id']), null, __('Are you sure you want to delete # %s?', $additionalInfo['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New Additional Info'), array('controller' => 'additional_infos', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
<div class="related">
    <h3><?php echo __('Related Addresses'); ?></h3>
    <?php if (!empty($user['Address'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Is Primary'); ?></th>
                <th><?php echo __('Mailing Address'); ?></th>
                <th><?php echo __('Apt No'); ?></th>
                <th><?php echo __('City'); ?></th>
                <th><?php echo __('State Id'); ?></th>
                <th><?php echo __('Zip'); ?></th>
                <th><?php echo __('No Of Aduldts'); ?></th>
                <th><?php echo __('No Of Children'); ?></th>
                <th><?php echo __('Is Allowed Mail'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($user['Address'] as $address): ?>
                <tr>
                    <td><?php echo $address['id']; ?></td>
                    <td><?php echo $address['user_id']; ?></td>
                    <td><?php echo $address['is_primary']; ?></td>
                    <td><?php echo $address['mailing_address']; ?></td>
                    <td><?php echo $address['apt_no']; ?></td>
                    <td><?php echo $address['city']; ?></td>
                    <td><?php echo $address['state_id']; ?></td>
                    <td><?php echo $address['zip']; ?></td>
                    <td><?php echo $address['no_of_aduldts']; ?></td>
                    <td><?php echo $address['no_of_children']; ?></td>
                    <td><?php echo $address['is_allowed_mail']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'addresses', 'action' => 'view', $address['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'addresses', 'action' => 'edit', $address['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'addresses', 'action' => 'delete', $address['id']), null, __('Are you sure you want to delete # %s?', $address['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New Address'), array('controller' => 'addresses', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
<div class="related">
    <h3><?php echo __('Related User Agents'); ?></h3>
    <?php if (!empty($user['UserAgent'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Agency Name'); ?></th>
                <th><?php echo __('Agent Name'); ?></th>
                <th><?php echo __('Non Union Docs'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($user['UserAgent'] as $userAgent): ?>
                <tr>
                    <td><?php echo $userAgent['id']; ?></td>
                    <td><?php echo $userAgent['user_id']; ?></td>
                    <td><?php echo $userAgent['agency_name']; ?></td>
                    <td><?php echo $userAgent['agent_name']; ?></td>
                    <td><?php echo $userAgent['non_union_docs']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'user_agents', 'action' => 'view', $userAgent['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'user_agents', 'action' => 'edit', $userAgent['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_agents', 'action' => 'delete', $userAgent['id']), null, __('Are you sure you want to delete # %s?', $userAgent['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New User Agent'), array('controller' => 'user_agents', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
<div class="related">
    <h3><?php echo __('Related User Schools'); ?></h3>
    <?php if (!empty($user['UserSchool'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Name'); ?></th>
                <th><?php echo __('City'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('State Id'); ?></th>
                <th><?php echo __('School Type Id'); ?></th>
                <th><?php echo __('Years At School'); ?></th>
                <th><?php echo __('Grade Level'); ?></th>
                <th><?php echo __('Graduated'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($user['UserSchool'] as $userSchool): ?>
                <tr>
                    <td><?php echo $userSchool['id']; ?></td>
                    <td><?php echo $userSchool['name']; ?></td>
                    <td><?php echo $userSchool['city']; ?></td>
                    <td><?php echo $userSchool['user_id']; ?></td>
                    <td><?php echo $userSchool['state_id']; ?></td>
                    <td><?php echo $userSchool['school_type_id']; ?></td>
                    <td><?php echo $userSchool['years_at_school']; ?></td>
                    <td><?php echo $userSchool['grade_level']; ?></td>
                    <td><?php echo $userSchool['graduated']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'user_schools', 'action' => 'view', $userSchool['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'user_schools', 'action' => 'edit', $userSchool['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_schools', 'action' => 'delete', $userSchool['id']), null, __('Are you sure you want to delete # %s?', $userSchool['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New User School'), array('controller' => 'user_schools', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
<div class="related">
    <h3><?php echo __('Related User Unions'); ?></h3>
    <?php if (!empty($user['UserUnion'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Union Id'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($user['UserUnion'] as $userUnion): ?>
                <tr>
                    <td><?php echo $userUnion['id']; ?></td>
                    <td><?php echo $userUnion['user_id']; ?></td>
                    <td><?php echo $userUnion['union_id']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'user_unions', 'action' => 'view', $userUnion['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'user_unions', 'action' => 'edit', $userUnion['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_unions', 'action' => 'delete', $userUnion['id']), null, __('Are you sure you want to delete # %s?', $userUnion['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New User Union'), array('controller' => 'user_unions', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
<div class="related">
    <h3><?php echo __('Related Waivers Releases'); ?></h3>
    <?php if (!empty($user['WaiversRelease'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Code Of Conduct'); ?></th>
                <th><?php echo __('Photo Releases'); ?></th>
                <th><?php echo __('Video Releases'); ?></th>
                <th><?php echo __('First Name'); ?></th>
                <th><?php echo __('Last Name'); ?></th>
                <th><?php echo __('Phone'); ?></th>
                <th><?php echo __('Address'); ?></th>
                <th><?php echo __('Apt No'); ?></th>
                <th><?php echo __('City'); ?></th>
                <th><?php echo __('State Id'); ?></th>
                <th><?php echo __('Zip'); ?></th>
                <th><?php echo __('Relationship To Participant'); ?></th>
                <th><?php echo __('Name Of Insurance'); ?></th>
                <th><?php echo __('Medical Insurance No'); ?></th>
                <th><?php echo __('Disabilities'); ?></th>
                <th><?php echo __('Disability Explanation'); ?></th>
                <th><?php echo __('Allergy'); ?></th>
                <th><?php echo __('Allergy Explaination'); ?></th>
                <th><?php echo __('Taking Medication'); ?></th>
                <th><?php echo __('Medication Explaination'); ?></th>
                <th><?php echo __('Digital Signature'); ?></th>
                <th><?php echo __('Digital Date Stamp'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($user['WaiversRelease'] as $waiversRelease): ?>
                <tr>
                    <td><?php echo $waiversRelease['id']; ?></td>
                    <td><?php echo $waiversRelease['user_id']; ?></td>
                    <td><?php echo $waiversRelease['code_of_conduct']; ?></td>
                    <td><?php echo $waiversRelease['photo_releases']; ?></td>
                    <td><?php echo $waiversRelease['video_releases']; ?></td>
                    <td><?php echo $waiversRelease['first_name']; ?></td>
                    <td><?php echo $waiversRelease['last_name']; ?></td>
                    <td><?php echo $waiversRelease['phone']; ?></td>
                    <td><?php echo $waiversRelease['address']; ?></td>
                    <td><?php echo $waiversRelease['apt_no']; ?></td>
                    <td><?php echo $waiversRelease['city']; ?></td>
                    <td><?php echo $waiversRelease['state_id']; ?></td>
                    <td><?php echo $waiversRelease['zip']; ?></td>
                    <td><?php echo $waiversRelease['relationship_to_participant']; ?></td>
                    <td><?php echo $waiversRelease['name_of_insurance']; ?></td>
                    <td><?php echo $waiversRelease['medical_insurance_no']; ?></td>
                    <td><?php echo $waiversRelease['disabilities']; ?></td>
                    <td><?php echo $waiversRelease['disability_explanation']; ?></td>
                    <td><?php echo $waiversRelease['allergy']; ?></td>
                    <td><?php echo $waiversRelease['allergy_explaination']; ?></td>
                    <td><?php echo $waiversRelease['taking_medication']; ?></td>
                    <td><?php echo $waiversRelease['medication_explaination']; ?></td>
                    <td><?php echo $waiversRelease['digital_signature']; ?></td>
                    <td><?php echo $waiversRelease['digital_date_stamp']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'waivers_releases', 'action' => 'view', $waiversRelease['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'waivers_releases', 'action' => 'edit', $waiversRelease['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'waivers_releases', 'action' => 'delete', $waiversRelease['id']), null, __('Are you sure you want to delete # %s?', $waiversRelease['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New Waivers Release'), array('controller' => 'waivers_releases', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
